package cn.kgc.dto;

import cn.kgc.entity.SkuEsModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>添加描述信息</p>
 *
 * @author 卢传琪
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SearchResult {
    private List<SkuEsModel> skuEsModelList; //当前页的商品
    private Integer pageNum; //当前页
    private Long total; //总记录数
    private Long totalPages; //总页数
    private List<BrandVO> brandVOList=new ArrayList<>(); //品牌信息
    private List<AttrVo> attrVoList=new ArrayList<>(); //属性信息
    private List<CategoryVo> categoryVoList=new ArrayList<>(); //分类信息
    @Data
    public static class CategoryVo{
        private Long categoryId;
        private String categoryName;
    }
    @Data
    public static class BrandVO{
        private Long brandId;
        private String brandName;
        private String brandImage;
    }
    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
